package com.meiyu.live.popj;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zbl on 2016/8/19.
 */
public class CityListBean {
    private Plist plist;


    public void setProvinceList(List<Province> array) {
        plist.array = array;
    }

    public List<Province> getProvinceList() {
        if (plist == null || plist.array == null){
            return new ArrayList<>();
        }
        return plist.array;
    }

    public class CityArray {

        private List<String> string;

        public void setString(List<String> string) {
            this.string = string;
        }

        public List<String> getCities() {
            return string;
        }

    }

    public class Province {

        private String key;
        private CityArray array;

        public void setKey(String key) {
            this.key = key;
        }

        public String getKey() {
            return key;
        }

        public List<String> getCityList() {
            if (array == null || array.getCities() == null){
                return new ArrayList<>();
            }
            return array.getCities();
        }

    }

    public class Plist {

        private String version;
        private List<Province> array;

        public void setVersion(String version) {
            this.version = version;
        }

        public String getVersion() {
            return version;
        }

    }
}
